package com.kingdee.eas.custom.wg.rpts;

import com.kingdee.bos.Context;
import com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox;
import com.kingdee.bos.ctrl.extendcontrols.ext.FilterInfoProducerFactory;
import com.kingdee.bos.ctrl.extendcontrols.ext.OrgUnitFilterInfoProducer;
import com.kingdee.eas.basedata.org.OrgType;
import com.kingdee.eas.common.ContextManager;
import com.kingdee.eas.common.client.SysContext;
import com.kingdee.eas.rpts.ctrlsqldesign.param.AbstractParamRelation;
import com.kingdee.eas.scm.common.filter.CompositeFilterElement;
import com.kingdee.eas.scm.common.filter.QueryFilterManager;
import com.kingdee.eas.scm.common.filter.SingleFilterElement;
import com.kingdee.eas.scm.common.util.F7ContextManager;
import com.kingdee.eas.scm.common.verify.VerifyItem;
import com.kingdee.eas.scm.common.verify.VerifyType;
import com.kingdee.eas.scm.im.inv.client.InvClientUtils;

public class MaterialReqParamRelation extends AbstractParamRelation  {

	public void loadSolutionAfter() throws Exception
	{
		
		KDBizPromptBox prmtStorageOrg = (KDBizPromptBox) objectComponents.get("storageOrg");
		
        OrgUnitFilterInfoProducer iProducer = (OrgUnitFilterInfoProducer)FilterInfoProducerFactory.getOrgUnitFilterInfoProducer(OrgType.Storage);
        String permissionItem = getViewPermission();
        if(permissionItem != null)
            iProducer.getModel().setPermissionItem(permissionItem);
        prmtStorageOrg.setFilterInfoProducer(iProducer);
       
//        F7ContextManager f7Manager = new F7ContextManager(null, OrgType.Company, 1);
//        KDBizPromptBox prmtSupplier = (KDBizPromptBox) objectComponents.get("supplier");
//        f7Manager.registerBizSupplierF7(prmtSupplier, null, null, null);
//       
     
	}
	protected String getViewPermission()
    {
        //return "materialreq_view";
		return null;
    }
}
